/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package assisisw.smartcal.utilities;

import java.util.Objects;

/**
 *
 * @author Francesco
 */
public final class Configuration 
{

    // Static Fields
    
    /***/
    public static final String PU_NAME = "ProvaMySQLPU" ;
    
    // Instance Methods
    
    /***/
    private Configuration () {}
    
    // Other Members
    
    public enum Page
    {
    
        INDEX ( "index" ) ,
        
        DASHBOARD ( "dashboard" ) ,
        
        UNKNOWN_ERROR ( "unknownerror" ) ;
        
        private final String value ;
        
        private Page ( String value )
        {
            if ( Objects.nonNull ( value ) && ! value.isEmpty () )
                this.value = value ;
            else
                throw new IllegalArgumentException () ;
        }
    
        public String getValue () 
        {
            return value ;
        }
        
    }
    
}
